﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EDM;
using System.Data.Objects;

namespace TestConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
          //  DbOperateManage db = new DbOperateManage();
            var dbContext = new EDM.TrainingWorkShopEntities();
            try
            {
                var newRoleAuthority = new RoleAuthority
                {
                    RoleId = 170,
                    AuthorityId =2
                };
                dbContext.RoleAuthorities.AddObject(newRoleAuthority);
                dbContext.SaveChanges();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.InnerException.Message);
            }
            Console.WriteLine("success");
       
        }
    }
}
